﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace CoolCode.Bracket.LinqToSql.Entities
{
    [Table(Name = "dbo.sys_Menu")]
    public partial class Menu:EntityBase
    {
        private int _iD;

        [Column(CanBeNull = false, IsPrimaryKey = true)]
        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        private int _seq;

        [Column(CanBeNull = false)]
        public int Seq
        {
            get { return _seq; }
            set { _seq = value; }
        }

        private int _parentID;

        [Column(CanBeNull = false)]
        public int ParentID
        {
            get { return _parentID; }
            set { _parentID = value; }
        }

        private string _type;

        [Column(CanBeNull = false)]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private string _name;

        [Column(CanBeNull = false)]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _desc;

        [Column(UpdateCheck = UpdateCheck.Never)]
        public string Desc
        {
            get { return _desc; }
            set { _desc = value; }
        }

        private string _path;

        [Column(CanBeNull = false)]
        public string Path
        {
            get { return _path; }
            set { _path = value; }
        }

        private string _status;

        [Column(CanBeNull = false)]
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }

        private string _moduleID;

        [Column(CanBeNull = false)]
        public string ModuleID
        {
            get { return _moduleID; }
            set { _moduleID = value; }
        }

        private string _target;

        [Column]
        public string Target
        {
            get { return _target; }
            set { _target = value; }
        }


    }
}
